﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>在线考试系统</title>
    <!-- bootstrap 3.0.2 -->
    <link th:href="@{/resource/css/bootstrap.min.css}" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link th:href="@{/resource/css/style.css}" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" th:href="@{/resource/js/jQueryMessage/css/message.skin.css}" />
</head>

<body>
	<div class="row">
	    <div class="col-md-12">
	    	<h1 class="panel-heading">考试中心</h1>
	        <!--breadcrumbs start -->
	        <ul class="breadcrumb">
				<li><a href="/admin/dashboard/toIndex"><i class="fa fa-home"></i> 首页</a></li>
				<li class="active">学员考试</li>
			</ul>
	        <!--breadcrumbs end -->
	    </div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<section class="panel">
				<div class="panel-body">
					<form class="col s12" id="doExamForm" enctype="multipart/form-data" method="post">
						<!--试卷ID-->
						<input type="hidden" id="testpaper_id" th:value="${testPaper.id}"/>
						<label th:text="${testPaper.title}"></label>
						<div class="form-group form-control-medium" th:each="paperQuestion,stat : ${testPaper.questionList}">
							<label  th:text="${paperQuestion.order + '.' + paperQuestion.question.content}"></label>
							<textarea  name="content" type="text" class="form-control"
									  th:attr="order=${paperQuestion.order}, question_id=${paperQuestion.question.id}" ></textarea>
						</div>
						<div class="form-btn-group-left">
							<button type="button" class="btn btn-info" id="submitBtn">提交</button>
						</div>
					</form>
				</div>
			</section>
		</div>
	</div>
	<script th:src="@{/resource/js/jquery.min.js}" type="text/javascript"></script>
    <script type="text/javascript" th:src="@{/resource/js/jQueryMessage/js/jquery.plugin.message.js}"></script>
	<!--引入VUE-->
	<script th:src="@{/resource/js/vue.min.js}" type="text/javascript"></script>
	<script th:src="@{/resource/js/axios.min.js}" type="text/javascript"></script>
	<script th:src="@{/resource/js/exam/doExam.js}" type="text/javascript"></script>
    <script type="text/javascript">

    </script>
</body>
</html>
